package org.example.testdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.example.testdemo.pojo.Declare;
import org.example.testdemo.pojo.combination.DeclareInformation;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface DeclareMapper extends BaseMapper<Declare> {

    public IPage<DeclareInformation> getDeclareInformation(String pId, String yearId, String intervalId,Integer state,String userId, Page<DeclareInformation> page);

    public BigDecimal getAmount(String pId);

    public DeclareInformation getDeclareInformationSingle(String declareId);

    public IPage<DeclareInformation> findByDeclareInformationAll(String pId, String yearId, String intervalId,Integer state,String userId, Page<DeclareInformation> page);

}
